<?php
$this->load->helper ( "url" );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>My Facebook App</title>
<script type="text/javascript"
	src=<?php echo base_url()."style/ddtabmenu/ddtabmenufiles/ddtabmenu.js"?>>

/***********************************************
* DD Tab Menu script- � Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>
<!-- CSS for Tab Menu #1 -->
<link rel="stylesheet" type="text/css"
	href=<?php echo base_url()."style/ddtabmenu/ddtabmenufiles/ddtabmenu.css"; ?>>
<script type="text/javascript">
//SYNTAX: ddtabmenu.definemenu("tab_menu_id", integer OR "auto")
ddtabmenu.definemenu("ddtabs1", <?php $ddtabsId?>) //initialize Tab Menu #1 with 1st tab selected

</script>
</head>
<body>
	<div id="ddtabs1" class="basictab">
		<ul>
			<li><a
				href=<?php echo "'".base_url("index.php/FunctionWatermark/Watermark")."'"?>
				rel="Watermark">Watermark</a></li>
			<li><a
				href=<?php echo "'".base_url("index.php/FunctionTwoImages/TwoImages")."'"?>
				rel="TwoImages">TwoImages</a></li>
			<li><a
				href=<?php echo "'".base_url("index.php/FunctionFrame/Frame")."'"?>
				rel="Frames">Frame</a></li>
			<li><a
				href=<?php echo "'".base_url("index.php/FunctionCartoon/Cartoon")."'"?>
				rel="Cartoon">Cartoon</a></li>
			<li><a
				href=<?php echo "'".base_url("index.php/FunctionIn20Years/In20Years")."'"?>
				rel="OldAge">OldAge</a></li>
			<li><a
				href=<?php echo "'".base_url("index.php/FunctionFunnyEffect/FunnyEffect")."'"?>
				rel="OldAge">FunnyEffect</a></li>
		</ul>
	</div>
	<DIV class="tabcontainer">

		<div id="Watermark" class="tabcontent"><?php $WatermarkContent?></div>

		<div id="TwoImages" class="tabcontent"><?php $TwoImageContent?></div>

		<div id="Frames" class="tabcontent"><?php $FrameContent?></div>

		<div id="Cartoon" class="tabcontent"><?php $CartoonContent?></div>

		<div id="OldAge" class="tabcontent"><?php $OldAgeContent?></div>
		<div id="FunnyEffect" class="tabcontent"><?php $FunnyEffectContent?></div>
	</DIV>
	<DIV class="imageupload">
		<img
			src=<?php
			if (isset ( $_SESSION ["userId"] ) && isset ( $_SESSION ["imageName"] ))
				echo base_url () . "UserUploads/" . $_SESSION ["userId"] . "/" . $_SESSION ["imageName"];
			else
				echo base_url () . "UserUploads/default.jpg";
			?>
			alt="" width=300px height=400px />
		<form id="imageUpload" method="post" enctype="multipart/form-data"
			action=<?php echo base_url("index.php/ImageUpload/ImageUpload/process");?>
			index.php/ImageUpload/ImageUpload/process>
			<label for="image">Select Image</label> <input type="file"
				id="imageUpload" name="imageUpload"> <input type="submit"
				value="Upload">
		</form>
			<?php
			echo $this->session->flashdata ( 'Error' );
			?>
		</DIV>
</body>
</html>